import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import '@/permission' // permission control
import './plugins/element'
import '@/styles/index.scss' // global css
import * as filters from './filters'
import directives from '@/directives'
import FormTable from '@/components/FormTable'
Vue.use(directives)
Vue.use(FormTable)
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
